package cn.edu.scau.cmi.yanweijie.client;


import java.net.URL;

import cn.edu.scau.cmi.yanweijie.comprehensiveExperimentFxml.ComprehensiveMyController;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;

public class ComprehensiveExperimentClient extends Application {
	@Override
	public void start(Stage primaryStage) {
		try {
			
			primaryStage.setTitle("综合性实验");
			FXMLLoader fx=new FXMLLoader();
			URL url=fx.getClassLoader().getResource("cn/edu/scau/cmi/yanweijie/comprehensiveExperimentFxml/Comprehensive.fxml");

			fx.setLocation(url);
			AnchorPane root1=(AnchorPane)fx.load();	
			
			ComprehensiveMyController mc=(ComprehensiveMyController)fx.getController();
	
			ObservableList <String> value=FXCollections.observableArrayList("one","two");
		
		Image image = new Image(getClass().getResourceAsStream("/cn/edu/scau/cmi/yanweijie/comprehensiveExperimentFxml/201727010221颜伟桀.jpg"),281,405,false,false);
		
		mc.getPicture().setGraphic(new ImageView(image));

			
			
			
			Scene scene = new Scene(root1);
			
			primaryStage.setScene(scene);
			primaryStage.show();
			
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}
